package five;

/**
 * @author zzb
 * @since 2021-01-12
 */

//Client
//启动
public class Test {
  public static void main(String[] args) {
    Prototype pro = new ConcretePrototype("prototype");
    Prototype pro2 = (Prototype) pro.clone();
    System.out.println(pro.getName());//prototype
    System.out.println(pro2.getName());//prototype
  }
}
